package com.xzx.flink.bean;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.StringJoiner;

/**
 * @version 1.0
 * @auther xinzhixuan
 * @date 2022/4/17 14:24
 */
public class ClickEvent implements Serializable {

    private String user;
    private String url;
    private Long timestamp;

    public ClickEvent() {
    }

    public ClickEvent(String user, String url, Long timestamp) {
        this.user = user;
        this.url = url;
        this.timestamp = timestamp;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", ClickEvent.class.getSimpleName() + "[", "]")
                .add("user='" + user + "'")
                .add("url='" + url + "'")
                .add("timestamp=" + new Timestamp(timestamp))
                .toString();
    }
}
